Telegram Group & Telegram Channel
6. Program to Accept value of the side of Square and Calculate Area of Square.

import java.util.*;

class AreaOfSquare
{
public static void main(String args[])
{
int side, area;

Scanner sc = new Scanner(System.in);

System.out.println("Enter value of the sides of square");
side = sc.nextInt();

area = side * side;

System.out.println("Area of Square : " + area);
}
}

@java_codings



tg-me.com/java_codings/10
Create:
Last Update:

6. Program to Accept value of the side of Square and Calculate Area of Square.

import java.util.*;

class AreaOfSquare
{
public static void main(String args[])
{
int side, area;

Scanner sc = new Scanner(System.in);

System.out.println("Enter value of the sides of square");
side = sc.nextInt();

area = side * side;

System.out.println("Area of Square : " + area);
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/10

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

Advance Java ‍ from ms


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA